home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / wild / include / inline / displaymodule.h next >
C/C++ Source or Header  |  1999-01-01  |  2KB  |  56 lines

  1. #ifndef _INLINE_DISPLAYMODULE_H
  2. #define _INLINE_DISPLAYMODULE_H
  3.  
  4. #ifndef __INLINE_MACROS_H
  5. #include <inline/macros.h>
  6. #endif
  7.  
  8. #ifndef DISPLAYMODULE_BASE_NAME
  9. #define DISPLAYMODULE_BASE_NAME DisplayModuleBase
  10. #endif
  11.  
  12. #define SetModuleTags(WildApp, Tags) \
  13.     LP2NR(0x1E, SetModuleTags, struct WildApp *, WildApp, a0, struct TagItem *, Tags, a1, \
  14.     , DISPLAYMODULE_BASE_NAME)
  15.  
  16. #ifndef NO_INLINE_STDARG
  17. #define SetModuleTagsTags(WildApp, tags...) \
  18.     ({ULONG _tags[] = {tags}; SetModuleTags((WildApp), (struct TagItem *) _tags);})
  19. #endif
  20.  
  21. #define GetModuleTags(WildApp, Tags) \
  22.     LP2NR(0x24, GetModuleTags, struct WildApp *, WildApp, a0, struct TagItem *, Tags, a1, \
  23.     , DISPLAYMODULE_BASE_NAME)
  24.  
  25. #ifndef NO_INLINE_STDARG
  26. #define GetModuleTagsTags(WildApp, tags...) \
  27.     ({ULONG _tags[] = {tags}; GetModuleTags((WildApp), (struct TagItem *) _tags);})
  28. #endif
  29.  
  30. #define SetupModule(WildApp, Tags) \
  31.     LP2(0x2A, BOOL, SetupModule, struct WildApp *, WildApp, a0, struct TagItem *, Tags, a1, \
  32.     , DISPLAYMODULE_BASE_NAME)
  33.  
  34. #ifndef NO_INLINE_STDARG
  35. #define SetupModuleTags(WildApp, tags...) \
  36.     ({ULONG _tags[] = {tags}; SetupModule((WildApp), (struct TagItem *) _tags);})
  37. #endif
  38.  
  39. #define CloseModule(WildApp) \
  40.     LP1NR(0x30, CloseModule, struct WildApp *, WildApp, a0, \
  41.     , DISPLAYMODULE_BASE_NAME)
  42.  
  43. #define RefreshModule(WildApp) \
  44.     LP1(0x36, BOOL, RefreshModule, struct WildApp *, WildApp, a0, \
  45.     , DISPLAYMODULE_BASE_NAME)
  46.  
  47. #define DISDisplayFrame(WildApp) \
  48.     LP1NR(0x3C, DISDisplayFrame, struct WildApp *, WildApp, a0, \
  49.     , DISPLAYMODULE_BASE_NAME)
  50.  
  51. #define DISInitFrame(WildApp) \
  52.     LP1NR(0x42, DISInitFrame, struct WildApp *, WildApp, a0, \
  53.     , DISPLAYMODULE_BASE_NAME)
  54.  
  55. #endif /*  _INLINE_DISPLAYMODULE_H  */
  56.